﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Model
{
    /// <summary>
    /// 微信会员
    /// </summary>
    [Serializable]
    public partial class weixin_user
    {
        public weixin_user() { }

        #region Model
        private int _id;
        private string _openid = string.Empty;
        private string _session_key = string.Empty;
        private string _user_name = string.Empty;
        private string _nick_name = string.Empty;
        private int _payment_id = 1;
        private int _sex = 0;
        private string _mobile = string.Empty;
        private string _avatarurl = string.Empty;
        private string _country = string.Empty;
        private string _province = string.Empty;
        private string _city = string.Empty;
        private string _language = string.Empty;
        private DateTime _add_time = DateTime.Now;
        private DateTime? _update_time;

        /// <summary>
        /// 自增ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 微信用户openid
        /// </summary>
        public string openid
        {
            set { _openid = value; }
            get { return _openid; }
        }
        /// <summary>
        /// 微信用户session_key
        /// </summary>
        public string session_key
        {
            set { _session_key = value; }
            get { return _session_key; }
        }
        /// <summary>
        /// 微信用户名
        /// </summary>
        public string user_name
        {
            set { _user_name = value; }
            get { return _user_name; }
        }
        /// <summary>
        /// 微信用户昵称
        /// </summary>
        public string nick_name
        {
            set { _nick_name = value; }
            get { return _nick_name; }
        }
        /// <summary>
        /// 用户付款方式1支付宝2银行卡
        /// </summary>
        public int payment_id
        {
            set { _payment_id = value; }
            get { return _payment_id; }
        }
        /// <summary>
        /// 性别：0未知1男性2女性
        /// </summary>
        public int sex
        {
            set { _sex = value; }
            get { return _sex; }
        }
        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile
        {
            set { _mobile = value; }
            get { return _mobile; }
        }
        /// <summary>
        /// 头像
        /// </summary>
        public string avatarurl
        {
            set { _avatarurl = value; }
            get { return _avatarurl; }
        }
        /// <summary>
        /// 国家
        /// </summary>
        public string country
        {
            set { _country = value; }
            get { return _country; }
        }
        /// <summary>
        /// 省份
        /// </summary>
        public string province
        {
            set { _province = value; }
            get { return _province; }
        }
        /// <summary>
        /// 城市
        /// </summary>
        public string city
        {
            set { _city = value; }
            get { return _city; }
        }
        /// <summary>
        /// 语言
        /// </summary>
        public string language
        {
            set { _language = value; }
            get { return _language; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? update_time
        {
            set { _update_time = value; }
            get { return _update_time; }
        }
        #endregion
    }
}
